﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class GamePanel : MonoSingleton<GamePanel>
{
    public Text Text_level;
    public Text Text_leftBlockNumber;
    public Button Button_back;

    void Awake()
    {
        EventTriggerListener.Get(Button_back.gameObject, null).onClick = delegate (GameObject go, object data)
        {
            ShuaiManager.Instance.GoToMenu();
        };
    }

    public void Open()
    {
        this.gameObject.SetActive(true);
        //LoadingPanel.Instance.Close();
    }

    public void Close()
    {
        this.gameObject.SetActive(false);
    }
}
